import {getPDate} from "../../api/getPDate";
import {GETPDATE} from "../mutations-type"


const home = {
    state: {
        date: {}
    },
    mutations: {
        [GETPDATE](state,obj) {
            state.date=obj
        }
    },
    actions: {
        async getSDate({commit},obj) {
            let aa= await getPDate(obj)
            // console.log(aa)
            commit("GETPDATE",aa.data)
            return aa 
        }
    }
}



export default home